<template>
	<navbar/>
	<van-sidebar v-model="active" >
	  <van-sidebar-item title="全部"/>
	  <van-sidebar-item title="动漫" :to="{'name':'anima'}"/>
	  <van-sidebar-item title="游戏" :to="{'name':'game'}"/>
	  <van-sidebar-item title="漫画" :to="{'name':'comic'}"/>
	  <van-sidebar-item title="小说" :to="{'name':'novel'}"/>
	  <van-sidebar-item title="音乐" :to="{'name':'music'}"/>
	</van-sidebar>
</template>

<script setup>
	import { ref } from 'vue';
	import {onMounted} from 'vue';
	import router from '@/router'
	
	const active = ref(0)
	
	const afterRead = (file) => {
	      // 此时可以自行将文件上传至服务器
	      console.log(file);
	};
	
	const $emit = defineEmits(['change'])
	onMounted(()=>{
			 // 触发的事件， 传递的参数
	 	$emit("change", 1)
	 })
</script>

<style>
</style>